//
//  ShopView.m
//  随便点
//
//  Created by ZC on 15/4/6.
//  Copyright (c) 2015年 qfsoft. All rights reserved.
//

#import "ShopView.h"
#import "EvaluatViewController.h"
#import "AppDelegate.h"


@implementation ShopView{
    AppDelegate *delegate;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.

*/
- (void)drawRect:(CGRect)rect {

    [self setUpButton];
}

- (IBAction)ShopEvaluateClick:(id)sender {
    delegate  = (AppDelegate *)[[UIApplication sharedApplication]delegate];
    [delegate haveView];
    

    
    EvaluatViewController *evc=[[EvaluatViewController alloc]initWithNibName:@"EvaluatViewController" bundle:nil];
    
    [delegate.haveView pushViewController:evc animated:YES];
}

#pragma mark - 绘制背景button属性
-(void)setUpButton{
    
    //设置button的边框
    self.button1.layer.borderWidth=1.0f;
    self.button2.layer.borderWidth=1.0f;
    self.button3.layer.borderWidth=1.0f;
    self.button4.layer.borderWidth=1.0f;
    
    //设置button的弧度
    self.button1.layer.cornerRadius = 5.0f;
    self.button2.layer.cornerRadius = 5.0f;
    self.button3.layer.cornerRadius = 5.0f;
    self.button4.layer.cornerRadius = 5.0f;
    
    //设置button边框边框颜色
    self.button1.layer.borderColor = [[UIColor grayColor] CGColor];
    self.button2.layer.borderColor = [[UIColor grayColor] CGColor];
    self.button3.layer.borderColor = [[UIColor grayColor] CGColor];
    self.button4.layer.borderColor = [[UIColor grayColor] CGColor];
}

@end
